import axios from '@/libs/api.request'
import config from '@/config'

export const uploadImg = async (playload) => {
  const data = {
    ...playload
  }
  const resp = await axios.request({
    url: '/api/upload?folder=icon',
    data,
    method: 'post'
  })
  return resp
}
